home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / bratz-estilista.swf / scripts / DefineSprite_19_LoadStar / frame_1 / DoAction.as
Text File  |  2008-03-17  |  432b  |  18 lines

  1. function moveMe()
  2. {
  3.    distance += accel -= daccel;
  4.    _rotation = _rotation + accel * 5;
  5.    this._x = x + Math.cos(angle) * distance;
  6.    this._y = y + Math.sin(angle) * distance;
  7.    this._alpha = accel * 20;
  8.    if(accel <= 0)
  9.    {
  10.       removeMovieClip(this);
  11.    }
  12. }
  13. var distance = 0;
  14. !!baccel ? null : (baccel = 5);
  15. !!daccel ? null : (daccel = 0.2);
  16. var accel = random(baccel) + 5;
  17. setInterval(this,"moveMe",30);
  18.